package gui.tools.actions;

import gui.Frame;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 * Deletes all selected elements.
 */
@SuppressWarnings("serial")
public class EditEdgeAction extends AbstractAction
{

   private static Icon icon = new ImageIcon("icons/editedge.png");
   private Frame frame;

   /** Create this action for the given frame */
   public EditEdgeAction(Frame frame)
   {
      super("Edit Connector", icon);
      this.frame = frame;
   }

   @Override
   public void actionPerformed(ActionEvent ae)
   {
      // new SelectListener(frame.getView());
      frame.removeListeners();
      frame.addEditEdgeLister();

   }

}
